<?php

namespace app\admin\model\member;

use app\admin\model\BaseMode;


class StoreMember extends BaseMode
{

    public function getUserInfo(): \think\model\relation\HasOne
    {

       return $this->hasOne(BaseUsers::class,'uuid','uuid')->bind(['nickname','head_pic','gender','mobile']);
    }


    public static function getList(){

        $where=[];
        $store_json=session('store_id');
        $where[]=['store_id','=',$store_json];
        return  (new StoreMember)->with('getUserInfo')->where($where)->page(input('page',1))->limit(input('limit',20))->select();
    }


}